<div id="icon-edit" class="icon32 icon32-posts-post"><br></div>
<h2>新闻</h2>
<table id="report_table" cellspacing="0" class="wp-list-table widefat fixed posts">
    <tbody>
    <?php foreach ($data as $i => $row): ?>
    <?php $row = $row['Service']?>
    <tr <?php echo $i%2==0? 'class="alt"': ''?>>
        <td><?php echo h($row['id']); ?>&nbsp;</td>
        <td><?php echo h($row['name']); ?></td>
        <td><?php echo h($row['priority']); ?></td>
        <td><?php echo h($row['in_home']); ?></td>
        <td><?php echo date('Y-m-d H:i:s', $row['created']); ?>&nbsp;</td>
        <td><?php echo date('Y-m-d H:i:s', $row['updated']); ?></td>
        <td class="actions">
            <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $row['id'])); ?>|
            <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $row['id']), null, __('Are you sure you want to delete # %s?', $row['id'])); ?>
        </td>
    </tr>
<?php endforeach; ?>
    </tbody>
    <thead>
        <?php echo $this->Html->tableHeaders(array('id', '名称', '优先级', '首页显示', '创建时间','最后更新', __('Actions')));?>
    </thead>
    <tfoot>
        <?php echo $this->Html->tableHeaders(array('id', '名称', '优先级', '首页显示', '创建时间','最后更新', __('Actions')));?>
    </tfoot>
</table>
<?php echo $this->Paginator->numbers()?>
